using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
using System.Data;
using System.Configuration;
using Bussiness.Config;     
using Bussiness.Entity;
namespace Bussiness.ManagerBase
{
                

     public abstract class PT_SEQNOManagerBase
    {
        public PT_SEQNOManagerBase()
        {
            Adapter.ConnectionString =  ConnectionConfig.ConnectionString;            
        }
                    
 
        /// <summary>
        /// Them moi du lieu
        /// </summary>
        /// <returns>PT_SEQNOEntity</returns>
        public PT_SEQNOEntity Insert(PT_SEQNOEntity obj)
        { 
            return (PT_SEQNOEntity) Adapter.Insert(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo khoa chinh cua object
        /// </summary>
        /// <returns>PT_SEQNOEntity</returns>
        public PT_SEQNOEntity Update(PT_SEQNOEntity obj)
        { 
            return (PT_SEQNOEntity)Adapter.Update(obj);             
        }
 
 
        public PT_SEQNOEntity Delete(PT_SEQNOEntity obj)
        { 
            return (PT_SEQNOEntity)Adapter.Delete(obj);             
        }
 


        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien TableSeq duoc set trong object
        /// </summary>
        /// <returns>PT_SEQNOEntity</returns>
        public PT_SEQNOEntity DeleteByTableSeq (PT_SEQNOEntity obj)
        { 
            return (PT_SEQNOEntity)Adapter.DeleteByField(obj,"TableSeq");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien TableSeq 
        /// </summary>
        /// <returns>PT_SEQNOEntity</returns>
        public PT_SEQNOEntity DeleteByTableSeq (string TableSeq )
        { 
            PT_SEQNOEntity obj = new PT_SEQNOEntity();
            obj.TableSeq = TableSeq;  
            return (PT_SEQNOEntity)Adapter.DeleteByField(obj,"TableSeq");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ColumnSeq duoc set trong object
        /// </summary>
        /// <returns>PT_SEQNOEntity</returns>
        public PT_SEQNOEntity DeleteByColumnSeq (PT_SEQNOEntity obj)
        { 
            return (PT_SEQNOEntity)Adapter.DeleteByField(obj,"ColumnSeq");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ColumnSeq 
        /// </summary>
        /// <returns>PT_SEQNOEntity</returns>
        public PT_SEQNOEntity DeleteByColumnSeq (string ColumnSeq )
        { 
            PT_SEQNOEntity obj = new PT_SEQNOEntity();
            obj.ColumnSeq = ColumnSeq;  
            return (PT_SEQNOEntity)Adapter.DeleteByField(obj,"ColumnSeq");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien LastNumber duoc set trong object
        /// </summary>
        /// <returns>PT_SEQNOEntity</returns>
        public PT_SEQNOEntity DeleteByLastNumber (PT_SEQNOEntity obj)
        { 
            return (PT_SEQNOEntity)Adapter.DeleteByField(obj,"LastNumber");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien LastNumber 
        /// </summary>
        /// <returns>PT_SEQNOEntity</returns>
        public PT_SEQNOEntity DeleteByLastNumber (int LastNumber )
        { 
            PT_SEQNOEntity obj = new PT_SEQNOEntity();
            obj.LastNumber = LastNumber;  
            return (PT_SEQNOEntity)Adapter.DeleteByField(obj,"LastNumber");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Prefix duoc set trong object
        /// </summary>
        /// <returns>PT_SEQNOEntity</returns>
        public PT_SEQNOEntity DeleteByPrefix (PT_SEQNOEntity obj)
        { 
            return (PT_SEQNOEntity)Adapter.DeleteByField(obj,"Prefix");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Prefix 
        /// </summary>
        /// <returns>PT_SEQNOEntity</returns>
        public PT_SEQNOEntity DeleteByPrefix (string Prefix )
        { 
            PT_SEQNOEntity obj = new PT_SEQNOEntity();
            obj.Prefix = Prefix;  
            return (PT_SEQNOEntity)Adapter.DeleteByField(obj,"Prefix");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Lenght duoc set trong object
        /// </summary>
        /// <returns>PT_SEQNOEntity</returns>
        public PT_SEQNOEntity DeleteByLenght (PT_SEQNOEntity obj)
        { 
            return (PT_SEQNOEntity)Adapter.DeleteByField(obj,"Lenght");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Lenght 
        /// </summary>
        /// <returns>PT_SEQNOEntity</returns>
        public PT_SEQNOEntity DeleteByLenght (int Lenght )
        { 
            PT_SEQNOEntity obj = new PT_SEQNOEntity();
            obj.Lenght = Lenght;  
            return (PT_SEQNOEntity)Adapter.DeleteByField(obj,"Lenght");
        }

 
        /// <summary>
        /// Lay du lieu theo khoa chinh object
        /// </summary>
        /// <returns></returns>
        public PT_SEQNOEntity Select(PT_SEQNOEntity obj)
        { 
            return (PT_SEQNOEntity) Adapter.Select(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(PT_SEQNOEntity obj)
        { 
            return  Adapter.SelectWithCondition(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(PT_SEQNOEntity obj,SelectOptions option)
        {             
            return  Adapter.SelectWithCondition(obj,option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll()
        { 
            return Adapter.SelectAll(new PT_SEQNOEntity());             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll(SelectOptions option)
        { 
            return Adapter.SelectAll(new PT_SEQNOEntity(),option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<PT_SEQNOEntity> SelectAllLST()
        { 
            return  (List<PT_SEQNOEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new PT_SEQNOEntity()),new PT_SEQNOEntity());           
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<PT_SEQNOEntity> SelectAllLST(SelectOptions option)
        { 
            return (List<PT_SEQNOEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new PT_SEQNOEntity(),option),new PT_SEQNOEntity());             
        }
 

        /// <summary>
        /// Lay du lieu theo cac dieu kien TableSeq duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTableSeq (PT_SEQNOEntity obj)
        { 
            return Adapter.SelectByField(obj,"TableSeq");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TableSeq duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTableSeq (PT_SEQNOEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"TableSeq",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TableSeq duoc set trong object
        /// </summary>
        /// <returns>List<PT_SEQNOEntity></returns>
        public List<PT_SEQNOEntity> SelectByTableSeqLST (PT_SEQNOEntity obj)
        { 
            return  (List<PT_SEQNOEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"TableSeq"),new PT_SEQNOEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TableSeq duoc set trong object
        /// </summary>
        /// <returns>List<PT_SEQNOEntity></returns>
        public List<PT_SEQNOEntity> SelectByTableSeqLST (PT_SEQNOEntity obj,SelectOptions option)
        { 
            return  (List<PT_SEQNOEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"TableSeq",option),new PT_SEQNOEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TableSeq 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTableSeq (string TableSeq )
        { 
            PT_SEQNOEntity obj = new PT_SEQNOEntity();
            obj.TableSeq = TableSeq;  
            return Adapter.SelectByField(obj,"TableSeq");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TableSeq duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTableSeq (string TableSeq, SelectOptions option)
        { 
            PT_SEQNOEntity obj = new PT_SEQNOEntity();
            obj.TableSeq = TableSeq;  
            return Adapter.SelectByField(obj,"TableSeq",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TableSeq 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_SEQNOEntity> SelectByTableSeqLST (string TableSeq )
        { 
            PT_SEQNOEntity obj = new PT_SEQNOEntity();
            obj.TableSeq = TableSeq;  
            return  (List<PT_SEQNOEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"TableSeq"),new PT_SEQNOEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TableSeq duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_SEQNOEntity> SelectByTableSeqLST (string TableSeq, SelectOptions option)
        { 
            PT_SEQNOEntity obj = new PT_SEQNOEntity();
            obj.TableSeq = TableSeq;  
            return  (List<PT_SEQNOEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"TableSeq",option),new PT_SEQNOEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ColumnSeq duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByColumnSeq (PT_SEQNOEntity obj)
        { 
            return Adapter.SelectByField(obj,"ColumnSeq");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ColumnSeq duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByColumnSeq (PT_SEQNOEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"ColumnSeq",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ColumnSeq duoc set trong object
        /// </summary>
        /// <returns>List<PT_SEQNOEntity></returns>
        public List<PT_SEQNOEntity> SelectByColumnSeqLST (PT_SEQNOEntity obj)
        { 
            return  (List<PT_SEQNOEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ColumnSeq"),new PT_SEQNOEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ColumnSeq duoc set trong object
        /// </summary>
        /// <returns>List<PT_SEQNOEntity></returns>
        public List<PT_SEQNOEntity> SelectByColumnSeqLST (PT_SEQNOEntity obj,SelectOptions option)
        { 
            return  (List<PT_SEQNOEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"ColumnSeq",option),new PT_SEQNOEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ColumnSeq 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByColumnSeq (string ColumnSeq )
        { 
            PT_SEQNOEntity obj = new PT_SEQNOEntity();
            obj.ColumnSeq = ColumnSeq;  
            return Adapter.SelectByField(obj,"ColumnSeq");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ColumnSeq duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByColumnSeq (string ColumnSeq, SelectOptions option)
        { 
            PT_SEQNOEntity obj = new PT_SEQNOEntity();
            obj.ColumnSeq = ColumnSeq;  
            return Adapter.SelectByField(obj,"ColumnSeq",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ColumnSeq 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_SEQNOEntity> SelectByColumnSeqLST (string ColumnSeq )
        { 
            PT_SEQNOEntity obj = new PT_SEQNOEntity();
            obj.ColumnSeq = ColumnSeq;  
            return  (List<PT_SEQNOEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ColumnSeq"),new PT_SEQNOEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ColumnSeq duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_SEQNOEntity> SelectByColumnSeqLST (string ColumnSeq, SelectOptions option)
        { 
            PT_SEQNOEntity obj = new PT_SEQNOEntity();
            obj.ColumnSeq = ColumnSeq;  
            return  (List<PT_SEQNOEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ColumnSeq",option),new PT_SEQNOEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastNumber duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLastNumber (PT_SEQNOEntity obj)
        { 
            return Adapter.SelectByField(obj,"LastNumber");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastNumber duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLastNumber (PT_SEQNOEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"LastNumber",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastNumber duoc set trong object
        /// </summary>
        /// <returns>List<PT_SEQNOEntity></returns>
        public List<PT_SEQNOEntity> SelectByLastNumberLST (PT_SEQNOEntity obj)
        { 
            return  (List<PT_SEQNOEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"LastNumber"),new PT_SEQNOEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastNumber duoc set trong object
        /// </summary>
        /// <returns>List<PT_SEQNOEntity></returns>
        public List<PT_SEQNOEntity> SelectByLastNumberLST (PT_SEQNOEntity obj,SelectOptions option)
        { 
            return  (List<PT_SEQNOEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"LastNumber",option),new PT_SEQNOEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastNumber 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLastNumber (int LastNumber )
        { 
            PT_SEQNOEntity obj = new PT_SEQNOEntity();
            obj.LastNumber = LastNumber;  
            return Adapter.SelectByField(obj,"LastNumber");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastNumber duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLastNumber (int LastNumber, SelectOptions option)
        { 
            PT_SEQNOEntity obj = new PT_SEQNOEntity();
            obj.LastNumber = LastNumber;  
            return Adapter.SelectByField(obj,"LastNumber",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastNumber 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_SEQNOEntity> SelectByLastNumberLST (int LastNumber )
        { 
            PT_SEQNOEntity obj = new PT_SEQNOEntity();
            obj.LastNumber = LastNumber;  
            return  (List<PT_SEQNOEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"LastNumber"),new PT_SEQNOEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastNumber duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_SEQNOEntity> SelectByLastNumberLST (int LastNumber, SelectOptions option)
        { 
            PT_SEQNOEntity obj = new PT_SEQNOEntity();
            obj.LastNumber = LastNumber;  
            return  (List<PT_SEQNOEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"LastNumber",option),new PT_SEQNOEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Prefix duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPrefix (PT_SEQNOEntity obj)
        { 
            return Adapter.SelectByField(obj,"Prefix");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Prefix duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPrefix (PT_SEQNOEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"Prefix",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Prefix duoc set trong object
        /// </summary>
        /// <returns>List<PT_SEQNOEntity></returns>
        public List<PT_SEQNOEntity> SelectByPrefixLST (PT_SEQNOEntity obj)
        { 
            return  (List<PT_SEQNOEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Prefix"),new PT_SEQNOEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Prefix duoc set trong object
        /// </summary>
        /// <returns>List<PT_SEQNOEntity></returns>
        public List<PT_SEQNOEntity> SelectByPrefixLST (PT_SEQNOEntity obj,SelectOptions option)
        { 
            return  (List<PT_SEQNOEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"Prefix",option),new PT_SEQNOEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Prefix 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPrefix (string Prefix )
        { 
            PT_SEQNOEntity obj = new PT_SEQNOEntity();
            obj.Prefix = Prefix;  
            return Adapter.SelectByField(obj,"Prefix");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Prefix duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPrefix (string Prefix, SelectOptions option)
        { 
            PT_SEQNOEntity obj = new PT_SEQNOEntity();
            obj.Prefix = Prefix;  
            return Adapter.SelectByField(obj,"Prefix",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Prefix 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_SEQNOEntity> SelectByPrefixLST (string Prefix )
        { 
            PT_SEQNOEntity obj = new PT_SEQNOEntity();
            obj.Prefix = Prefix;  
            return  (List<PT_SEQNOEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Prefix"),new PT_SEQNOEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Prefix duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_SEQNOEntity> SelectByPrefixLST (string Prefix, SelectOptions option)
        { 
            PT_SEQNOEntity obj = new PT_SEQNOEntity();
            obj.Prefix = Prefix;  
            return  (List<PT_SEQNOEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Prefix",option),new PT_SEQNOEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Lenght duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLenght (PT_SEQNOEntity obj)
        { 
            return Adapter.SelectByField(obj,"Lenght");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Lenght duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLenght (PT_SEQNOEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"Lenght",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Lenght duoc set trong object
        /// </summary>
        /// <returns>List<PT_SEQNOEntity></returns>
        public List<PT_SEQNOEntity> SelectByLenghtLST (PT_SEQNOEntity obj)
        { 
            return  (List<PT_SEQNOEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Lenght"),new PT_SEQNOEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Lenght duoc set trong object
        /// </summary>
        /// <returns>List<PT_SEQNOEntity></returns>
        public List<PT_SEQNOEntity> SelectByLenghtLST (PT_SEQNOEntity obj,SelectOptions option)
        { 
            return  (List<PT_SEQNOEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"Lenght",option),new PT_SEQNOEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Lenght 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLenght (int Lenght )
        { 
            PT_SEQNOEntity obj = new PT_SEQNOEntity();
            obj.Lenght = Lenght;  
            return Adapter.SelectByField(obj,"Lenght");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Lenght duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLenght (int Lenght, SelectOptions option)
        { 
            PT_SEQNOEntity obj = new PT_SEQNOEntity();
            obj.Lenght = Lenght;  
            return Adapter.SelectByField(obj,"Lenght",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Lenght 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_SEQNOEntity> SelectByLenghtLST (int Lenght )
        { 
            PT_SEQNOEntity obj = new PT_SEQNOEntity();
            obj.Lenght = Lenght;  
            return  (List<PT_SEQNOEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Lenght"),new PT_SEQNOEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Lenght duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<PT_SEQNOEntity> SelectByLenghtLST (int Lenght, SelectOptions option)
        { 
            PT_SEQNOEntity obj = new PT_SEQNOEntity();
            obj.Lenght = Lenght;  
            return  (List<PT_SEQNOEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Lenght",option),new PT_SEQNOEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<PT_SEQNOEntity></returns>
        public List<PT_SEQNOEntity> SelectWithConditionLST (PT_SEQNOEntity obj)
        { 
            return  (List<PT_SEQNOEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj),new PT_SEQNOEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<PT_SEQNOEntity></returns>
        public List<PT_SEQNOEntity> SelectWithConditionLST (PT_SEQNOEntity obj,SelectOptions option)
        { 
            return  (List<PT_SEQNOEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj,option),new PT_SEQNOEntity());
        }

}
}
